#https://www.coder.work/article/1561671

cmake_minimum_required(VERSION 3.0)
set(THREADS_PREFER_PTHREAD_FLAG ON)

project(myls)
aux_source_directory(. DIR)

set(CMAKE_C_STANDARD 11)
set(CMAKE_BUILD_TYPE Debug)

include_directories(../apue/include)
link_directories(../apue/lib)
link_libraries(apue)

find_package(Threads REQUIRED)
link_libraries(Threads::Threads)

add_executable(${PROJECT_NAME} ${DIR})
